home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Input 64
/
Input_64_87-06_1987_Verlag_Heinz_Weise_de.d64
/
einer gegen 1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
546b
|
43 lines
1000 rem aufloesung einer gegen alle 3/87
1010 :
1020 print"[147]"
1030 dim w(200)
1040 :
1050 print : input e$
1060 :
1070 rem chiffrierung
1080 :
1090 le=len(e$)
1100 of=int(rnd(1)*50)+10
1120 w(0)=le*2+1
1130 w(1)=of*2
1140 :
1150 z=1
1160 for i=le to 1 step-1
1170 z=z+1
1180 w(z)=asc(mid$(e$,i,1))+of
1190 z=z+1
1200 w(z)=int(rnd(1)*250)+1
1210 nexti
1220 :
1230 rem ausgabe der codierung
1240 :
1250 print
1260 for i=0 to w(0)
1270 printw(i),
1280 next i
1290 :
1300 rem dechiffrierung und ausgabe
1310 :
1320 an=w(0)-1
1330 of=w(1)/2
1340 :
1350 print:print:print"> ";
1360 for i=an to 2 step-2
1370 ch=w(i)-of
1380 print chr$(ch);
1390 nexti
1400 print
1410 :
1420 goto 1050